home *** CD-ROM | disk | FTP | other *** search
/ SPACE 2 / SPACE - Library 2 - Volume 1.iso / apps / 9 / applic / run.cmd < prev    next >
Encoding:
Text File  |  1986-04-17  |  1.5 KB  |  46 lines

  1. *** 03/19/86 df (C) 1986 Mirage Concepts                    ***
  2. *** FILE NAME -- EXEC.CMD 
  3. *** This command file will allow the user to run other programs and
  4. *** then returns the user back to H & D Base.
  5. *** You must have sufficient memory to load the external program.
  6. ***
  7. *** To load these commands in you just need to type:
  8. ***      DO EXEC
  9. ***
  10.  
  11. SET FORTH ON
  12.  
  13. *** We need to allocate enough memory for the additional commands
  14. : MALLOC  72 L>W 2 -1 GDOS ;
  15. 2000 MALLOC DROP
  16.  
  17. *** First we must create some data space to store the ENVIRONMENT string,
  18. *** COMMAND string, and FILE string
  19.  
  20. .CREATE ENV 10 ALLOT ENV 10 0 FILL
  21. .CREATE COM 20 ALLOT COM 20 0 FILL
  22. .CREATE FIL 20 ALLOT FIL 20 0 FILL
  23.  
  24. : EXEC ( ENV, COM, FIL --  flag )
  25.     0 L>W 75 L>W 8 -1 GDOS ;
  26.  
  27. : RUN  FIL 20 0 FILL 32 WORD .COUNT FIL SWAP CMOVE ENV COM FIL EXEC DROP
  28.        CRS-ON ;
  29.  
  30. *** The RUN command is used in the following form :
  31. ***      RUN <program name> 
  32. *** To run our File/Sector editor from our Toolbox Volume I you would
  33. *** type the following: 
  34. ***      RUN FSEDITOR.PRG
  35. *** NOTE: The file type, .PRG in the above case must be included.
  36. ***   You may find that the program that you RUN changes screen colors.
  37. ***   You should always reset these to your preferences upon returning
  38. ***   to H & D Base. A sample command file might read.
  39. ***        RUN FSEDITOR.PRG
  40. ***        SET COLOR TO 0
  41. ***        SET BACKGROUND TO 3
  42. ***
  43.  
  44.  
  45.  
  46. əəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəəə